import requests


class HeaderUtil:
    @classmethod
    def get_token(cls):
        url = "http://ihrm-test.itheima.net/api/sys/login"
        header ={"Content-Type": "application/json"}
        boby ={"mobile": "13800000002","password": "123456"}
        resp =requests.post(url=url,headers=header,json=boby)
        token =resp.json().get("data")
        return token
